package com.dau.entity.customer;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dau.entity.BaseEntity;
import lombok.*;

import java.io.Serial;

/**
 * 客户抽奖
 *
 * @author tzj
 * @date 2024/12/17
 */
@EqualsAndHashCode(callSuper = true)
@TableName("customer_lucky_draw")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LuckyDraw extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 客户id
     */
    private Long customerId;
    /**
     * 奖品id
     */
    private Long prizeId;
    /**
     * 活动id
     */
    private Long activityId;
    /**
     * 客户vx id
     */
    private String customerVxId;
    /**
     * 是否中奖
     */
    @TableField(exist = false)
    private Boolean winning;

    /**
     * 奖品
     */
    @TableField(exist = false)
    private String prizeName;
}
